import { Entity, Column} from 'typeorm';
import { CommonEntity } from './common.entity'
// posts_tags：文章和标签的中间表
@Entity('posts_tags')
export class PostsTagsEntity extends CommonEntity {
  @Column({
    type: 'int',
    name: 'tags_id',
    comment: '标签id',
  })
  tagsId: number;

  @Column({
    type: 'int',
    name: 'posts_id',
    comment: '文章id',
  })
  postsId: number;
}